#include <iostream>

using namespace std;


/*!
 * \brief Returns the size of a matrix given its dimensions
 */
// 主模板声明要在特例化之前
template <typename... T>
inline size_t size(size_t first, T... args) {
    return first * size(args...);
}
template<>
inline size_t size(size_t first) {
    return first;
}


int main()
{
    cout << (static_cast<std::size_t>(0) - static_cast<std::size_t>(1)) / sizeof(int) << "\n";
    cout << size(1,2,3) << endl;
    // if(int i = 10; i < 11) {cout << i << "\n";}
    return 0;
}